<?php
jimport('joomla.html.html');
JHTML :: _('behavior.modal', 'a.modal');

?>

						<fieldset>
							<input type="hidden" value="<?php echo md5(uniqid(rand(), true))?>" name="rid"/>
							
							<div class="pulizia"></div>
							<div class="separatore"></div>
							<h4>dati personali</h4>
							<p>
							<label>nome*</label>
							<input type="text" class="text" name="name" id="name" value="<?php echo isset($_POST["name"]) ? $_POST["name"] : "" ?>"/>
							</p>

							<p class="secondo">
							<label>cognome*</label>
							<input type="text" class="text" name="surname" id="surname" value="<?php echo isset($_POST["surname"]) ? $_POST["surname"] : "" ?>"/>
							</p>
							
							<p>
							<label>luogo di nascita*</label>
							<input type="text" class="text" name="placeofborn" id="placeofborn" value="<?php echo isset($_POST["placeofborn"]) ? $_POST["placeofborn"] : "" ?>"/>
							</p>

							<p class="secondo">
							<label>data di nascita (gg/mm/aaaa)*</label>
							<input type="text" class="text" name="dateofborn" id="dateofborn" value="<?php echo isset($_POST["dateofborn"]) ? $_POST["dateofborn"] : "" ?>"/>
							</p>
							
							<div class="pulizia"></div>
							<p class="minorenne">
								<a id="toggle-minorenni">se minorenni inserire i dati di uno dei genitori</a>
							</p>
							
							<fieldset id="minorenni">
								<legend>dati di un genitore</legend>
								<p>
								<label>nome</label>
								<input type="text" class="text" name="parentname" id="parentname" value="<?php echo isset($_POST["parentname"]) ? $_POST["parentname"] : "" ?>"/>
								</p>
	
								<p class="secondo">
								<label>cognome</label>
								<input type="text" class="text" name="parentsurname" id="parentsurname" value="<?php echo isset($_POST["parentsurname"]) ? $_POST["parentsurname"] : "" ?>"/>
								</p>
								
								<p>
								<label>luogo di nascita</label>
								<input type="text" class="text" name="parentplaceofborn" id="parentplaceofborn" value="<?php echo isset($_POST["parentplaceofborn"]) ? $_POST["parentplaceofborn"] : "" ?>"/>
								</p>
	
								<p class="secondo">
								<label>data di nascita (gg/mm/aaaa)</label>
								<input type="text" class="text" name="parentdateofborn" id="parentdateofborn" value="<?php echo isset($_POST["parentdateofborn"]) ? $_POST["parentdateofborn"] : "" ?>"/>
								</p>
							
							</fieldset>
							
							<p>
								<label>email*</label>
								<input type="text" class="text" name="email" id="email" value="<?php echo isset($_POST["email"]) ? $_POST["email"] : "" ?>"/>
							</p>

							<p class="secondo">
								<label>telefono</label>
								<input type="text" class="text" name="phone" id="phone" value="<?php echo isset($_POST["phone"]) ? $_POST["phone"] : "" ?>"/>
							</p>

							<p>
								<label>indirizzo*</label>
								<input type="text" class="text" name="address" id="address" value="<?php echo isset($_POST["address"]) ? $_POST["address"] : "" ?>"/>
							</p>

							<p class="secondo">
								<label>CAP*</label>
								<input type="text" class="text" name="zip" id="zip" value="<?php echo isset($_POST["zip"]) ? $_POST["zip"] : "" ?>"/>
							</p>
														
							<p>
								<label>città*</label>
								<input type="text" class="text" name="city" id="city" value="<?php echo isset($_POST["city"]) ? $_POST["city"] : "" ?>"/>
							</p>
							
							<p class="secondo">
								<label>socio presentatore</label>
								<input type="text" class="text" name="inviteby" id="inviteby" value="<?php echo isset($_POST["inviteby"]) ? $_POST["inviteby"] : "" ?>"/>
							</p>
							
							<div class="pulizia"></div>
							<div class="separatore"></div>
							<h4>dati accesso</h4>

							<p>
								<label>nome utente*</label>
								<input type="text" class="text" name="username" id="username" value="<?php echo isset($_POST["username"]) ? $_POST["username"] : "" ?>"/>
							</p>
							<p class="secondo">&nbsp;</p>

							<p>
								<label>password*</label>
								<input type="password" class="text" name="password" id="password" value=""/>
							</p>
							
							<p class="secondo">
								<label>conferma password*</label>
								<input type="password" class="text" name="chkpassword" id="chkpassword" value=""/>
							</p>

							<div class="pulizia"></div>

							<p class="note">questi dati consentiranno l'accesso alle sezioni riservate del sito presto attivate, quali il forum</p>

							<div class="pulizia"></div>
							
							<p class="note">i campi contrassegnati da (*) sono obbligatori</p>

							<div class="separatore"></div>
							
							<p class="statuto">
								ho letto lo 
								<a href="<?php echo JRoute :: _(JURI :: base() . "index.php?option=com_content&view=article&id=71&Itemid=86&tmpl=component") ?>" class="modal"  rel="{handler: 'iframe'}">statuto</a> 
								della Fondazione Alessandro Pavesi e dichiaro di condividerne
								i principi ispiratori e la finalità e di accettarne i contenuti
							</p>

							<p class="accetto">
								<strong>ho letto</strong>
								<input type="radio" name="read" id="read-valid" value="1" <?php echo $_POST["read"] == '1' ? "checked=\"checked\"" : "" ?>/> <label for="read-valid">s&igrave; </label>
								<input type="radio" name="read" id="read-invalid" value="0" <?php echo $_POST["read"] == '0' ? "checked=\"checked\"" : "" ?>/> <label for="read-invalid">no</label>
							</p>

							<div class="pulizia"></div>
							<div class="separatore"></div>
							
							<h4>scelgo di diventare</h4>

							<p class="tiposocio">
								<input type="radio" name="type" id="type-amico" value="A" <?php echo $_POST["type"] == 'A' ? "checked=\"checked\"" : "" ?>/> 
								<label for="type-amico">
									<strong>amico</strong>
									colui che si impegna a sostenere la Fondazione i suoi principi e le sue finalità, senza alcun impegno economico
								</label>
																
								<input type="radio" name="type" id="type-sostenitore" value="S" <?php echo $_POST["type"] == 'S' ? "checked=\"checked\"" : "" ?>/>
								<label for="type-sostenitore">
									<strong>sostenitore</strong>
									colui che intende sostenere anche economicamente la Fondazione con un contributo volontario
								</label>
							</p>
							
							<div class="pulizia"></div>
							
							<fieldset id="sostenitore-info">
								<legend>info su donazioni</legend>
								<p class="dati-bonifico" id="dati-bonifico">
									<strong>dati bancari</strong> Fondazione Alessandro Pavesi<br/>
									<strong>banca: </strong> Intesa Sanpaolo Private Banking SpA - Centro Private di Napoli<br/>
									<strong>c/c:</strong> 6700039426/25<br/>
									<strong>iban:</strong> IT70 J032 3901 6006 7000 3942 625<br/>
									<strong>abi:</strong> 03239<br/>
									<strong>cab:</strong> 01600<br/>
									<strong>cin:</strong> J
								</p>
								
								<div class="pulizia"></div>
								
								<p class="dati-paypal">
									<br/>
									<strong>donazioni con paypal</strong>
									<br/><br/>
								</p>
								
								<a href="https://www.paypal.com/it/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4603856" target="_blank" class="paypal">
									<img src="https://www.paypal.com/it_IT/IT/i/btn/btn_donateCC_LG.gif" alt="PayPal - Il sistema di pagamento online più facile e sicuro!" />
								</a>								
								
							</fieldset>

							<div class="separatore"></div>
							
							<h4>inserire codice di sicurezza</h4>

							<p class="captcha">{imageverification}</p>
							
							<div class="pulizia"></div>
							<div class="separatore"></div>
							
							<h4>iscrizione alla newsletter</h4>

							<p class="accetto">
								<strong>iscrivimi</strong>
								<input type="radio" name="newsletter" id="newsletter-valid" value="1"<?php echo !isset($_POST["newsletter"]) || $_POST["newsletter"] ? " checked=\"checked\"" : "" ?>/> <label for="agree-valid">s&igrave; </label>
								<input type="radio" name="newsletter" id="newsletter-invalid" value="0"<?php echo isset($_POST["newsletter"]) && !$_POST["newsletter"] ? " checked=\"checked\"" : "" ?>/> <label for="agree-invalid">no</label>
							</p>
							
							<div class="pulizia"></div>
							<div class="separatore"></div>
							
							<h4>normativa sulla privacy</h4>

							<p class="area">
								<textarea class="textarea"/>{loadposition privacy}</textarea>
							</p>

							<p class="accetto">
								<strong>accetto</strong>
								<input type="radio" name="agree" id="agree-valid" value="1"/> <label for="agree-valid">s&igrave; </label>
								<input type="radio" name="agree" id="agree-invalid" value="0"/> <label for="agree-invalid">no</label>
							</p>

							<p class="secondo">
								<button type="submit">registra</button>
							</p>
														
						</fieldset>